<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var a = +0;
        var b = -0;
        var c = -0;

        function eq(a, b) {
            if (a === b) return a !== 0 || 1 / a === 1 / b;
            return false;
        }
        var res1 = eq(0, 0);
        var res2 = eq(0, -0);
        debugger
    </script>
</body>

</html>